call plug#begin('~/.vim/plugged')
Plug 'scrooloose/nerdtree'
Plug 'ryanoasis/vim-devicons'
Plug 'tiagofumo/vim-nerdtree-syntax-highlight'
Plug 'mhinz/vim-startify'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'jiangmiao/auto-pairs'
Plug 'terryma/vim-smooth-scroll'
call plug#end()

" Basic Settings
""""""""""""""""""""
syntax on
set number
set relativenumber
set tabstop=4
set encoding=UTF-8
noremap <c-a-Down> ddp
noremap <c-a-Up> ddP

" NERDTree
""""""""""""""""""""
noremap <F3> :NERDTreeToggle<CR>
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
let NERDTreeMinimalUI = 1
let g:NERDTreeDirArrowExpandable = '▸'
let g:NERDTreeDirArrowCollapsible = '▾'
"let g:NERDTreeDirArrowExpandable = '|'
let NERDTreeMinimalUI = 1
let NERDTreeDirArrows = 1

" airline
""""""""""""""""""""
let g:airline#extensions#tabline#enabled = 1
let g:airline_theme="luna" 
"let g:airline_theme="bubblegum"
let g:airline_powerline_fonts = 1   

" vim-smooth
""""""""""""""""""""
noremap <silent> <c-b> :call smooth_scroll#up(&scroll, 30, 1)<CR>
noremap <silent> <c-f> :call smooth_scroll#down(&scroll, 30, 1)<CR>
